package com.f5.management.dao;

import com.f5.management.entity.Pet;
import com.f5.management.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface VehicleDao {
   void insertOne(Vehicle vehicle);//插入一条车辆数据
    void updateVehicleById(@Param("vehicle") Vehicle vehicle,@Param("id") int id);//更改车辆数据
    void deleteVehicleById(int id);//删除车辆,根据id修改status;

    Vehicle selectVehicleById(int id);//根据id查询车辆
    List<Vehicle> getAllVehicle(); //查询所有车辆



}
